<?php
App::uses('AppModel', 'Model');
/**
 * FeeType Model
 */
class FeeType extends AppModel {
/**
 * associations
 *
 * @var array
 */
    var $hasMany = array(
        'Fee' => array(
            'className' => 'Fee',
            'foreignKey' => 'fee_type_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

    public $belongsTo = array(
        'BankBranch' => array(
            'className' => 'BankBranch',
            'foreignKey' => 'bank_branch_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

    public function save($data = null,$validate = true, $fieldList = array()) {
        $s = $this->sanitize($data);
        return parent::save($s);
    }
}